package com.study.base;

/**
 * @description: LambdaTest   lambada表达式使用
 * @date: 2020/11/13 12:32
 * @author: hcm
 * @version: 1.0
 */
public class LambdaTest {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("普通方式开启多线程");
            }
        }).start();

        //java8
        new Thread(()->{
            System.out.println("java8多线程");
        }).start();
    }
}
